package com.factory.entity;

import com.factory._01simple.inter.Fruit;

/**
 * @author Qinye
 * @date 2023/8/10 22:37
 */
public class Apple implements Fruit {
    private  int treeAge;

    public int getTreeAge() {
        return treeAge;
    }

    public void setTreeAge(int treeAge) {
        this.treeAge = treeAge;
    }

    @Override
    public void grow() {
        System.out.println("Apple is growing");
    }

    @Override
    public void harvest() {
        System.out.println("Apple  has been harvested");
    }

    @Override
    public void plant() {
        System.out.println("Apple  has been planted");
    }



}
